package com.lidroid.xutils.sample.download;

import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.exception.HttpException;
import com.lidroid.xutils.http.HttpHandler;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.ResponseStream;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;

import java.io.File;

/**
 * Created by antwei on 2015/8/23.
 */
public class SubHttpUtils extends HttpUtils {

    public SubHttpUtils() {
        super();
    }

    public SubHttpUtils(int connTimeout) {
        super(connTimeout);
    }

    public SubHttpUtils(String userAgent) {
        super(userAgent);
    }

    public SubHttpUtils(int connTimeout, String userAgent) {
        super(connTimeout, userAgent);
    }


    /************************************send***************************************/
    @Override
    public <T> HttpHandler<T> send(HttpRequest.HttpMethod method, String url, RequestCallBack<T> callBack) {
        return super.send(method, url, callBack);
    }

    @Override
    public <T> HttpHandler<T> send(HttpRequest.HttpMethod method, String url, RequestParams params, RequestCallBack<T> callBack) {
        return super.send(method, url, params, callBack);
    }

    @Override
    public ResponseStream sendSync(HttpRequest.HttpMethod method, String url) throws HttpException {
        return super.sendSync(method, url);
    }

    @Override
    public ResponseStream sendSync(HttpRequest.HttpMethod method, String url, RequestParams params) throws HttpException {
        return super.sendSync(method, url, params);
    }

    /************************************download***************************************/

    @Override
    public HttpHandler<File> download(HttpRequest.HttpMethod method, String url, String target, RequestParams params, boolean autoResume, boolean autoRename, RequestCallBack<File> callback) {
        return super.download(method, url, target, params, autoResume, autoRename, callback);
    }

    @Override
    public HttpHandler<File> download(HttpRequest.HttpMethod method, String url, String target, RequestParams params, boolean autoResume, RequestCallBack<File> callback) {
        return super.download(method, url, target, params, autoResume, callback);
    }

    @Override
    public HttpHandler<File> download(HttpRequest.HttpMethod method, String url, String target, RequestParams params, RequestCallBack<File> callback) {
        return super.download(method, url, target, params, callback);
    }

    @Override
    public HttpHandler<File> download(String url, String target, boolean autoResume, boolean autoRename, RequestCallBack<File> callback) {
        return super.download(url, target, autoResume, autoRename, callback);
    }

    @Override
    public HttpHandler<File> download(String url, String target, boolean autoResume, RequestCallBack<File> callback) {
        return super.download(url, target, autoResume, callback);
    }

    @Override
    public HttpHandler<File> download(String url, String target, RequestCallBack<File> callback) {
        return super.download(url, target, callback);
    }

    @Override
    public HttpHandler<File> download(String url, String target, RequestParams params, boolean autoResume, boolean autoRename, RequestCallBack<File> callback) {
        return super.download(url, target, params, autoResume, autoRename, callback);
    }

    @Override
    public HttpHandler<File> download(String url, String target, RequestParams params, boolean autoResume, RequestCallBack<File> callback) {
        return super.download(url, target, params, autoResume, callback);
    }

    @Override
    public HttpHandler<File> download(String url, String target, RequestParams params, RequestCallBack<File> callback) {
        return super.download(url, target, params, callback);
    }


}
